﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Common;
using Automobile.service.Model;
using Automobile.service.DAL;
using System.Data;
namespace Automobile.service.BLL
{
   public class DocumentBLL
    {
       DocumentDAL dal = new DocumentDAL();
        /// <summary>
        /// 添加商品损益
        /// </summary>
        /// <param name="P"></param>
        /// <param name="xml"></param>
        /// <returns></returns>
        public int Document_Add(Document P, string xml)
        {
            return dal.Document_Add(P, xml);
        }
        /// <summary>
        /// 显示商品信息
        /// </summary>
        /// <param name="Product_Modelspe"></param>
        /// <returns></returns>
        public DataTable Product_Sel(string Product_Name)
        {
            return dal.Product_Sel(Product_Name);
        }
        /// <summary>
        /// 根据类型显示不同的信息
        /// </summary>
        /// <param name="Document_Type_Name"></param>
        /// <returns></returns>
        public List<Document> Document_Show(string Document_Type_Name)
        {
            return dal.Document_Show(Document_Type_Name);
        }
        /// <summary>
        /// 根据类型显示不同的信息
        /// </summary>
        /// <param name="Document_Type_Name"></param>
        /// <returns></returns>
        public List<Document_Mate> Document_Show_Pro(string Document_Type_Name)
        {
            return dal.Document_Show_Pro(Document_Type_Name);
        }
        /// <summary>
        /// 根据类型显示不同的信息
        /// </summary>
        /// <param name="Document_Type_Name"></param>
        /// <returns></returns>
        public List<Document> Document_Show_List(string Document_Type_Name)
        {
            return dal.Document_Show_List(Document_Type_Name);
        }
    }
}
